package com.hjy.cabinet.db.domain;

public class OperationLog {
    private int id;
    private int userId;
    private String username;
    //event 是备用字段
    //0是没有同步  1 是已同步
    private String event = "0";
    private String operationType;
    private String operationTime;

    private Boolean operationStatus;
    public OperationLog() {

    }
    // 构造函数


    public OperationLog(int id, int userId, String username, String event, String operationType, String operationTime, Boolean operationStatus) {
        this.id = id;
        this.userId = userId;
        this.username = username;
        this.event = event;
        this.operationType = operationType;
        this.operationTime = operationTime;
        this.operationStatus = operationStatus;
    }

    // Getter和Setter方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

    public String getOperationType() {
        return operationType;
    }

    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }

    public String getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(String operationTime) {
        this.operationTime = operationTime;
    }

    public Boolean getOperationStatus() {
        return operationStatus;
    }

    public void setOperationStatus(Boolean operationStatus) {
        this.operationStatus = operationStatus;
    }

    @Override
    public String toString() {
        return "OperationLog{" +
                "id=" + id +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", event='" + event + '\'' +
                ", operationType='" + operationType + '\'' +
                ", operationTime='" + operationTime + '\'' +
                ", operationStatus=" + operationStatus +
                '}';
    }
}